package com.linkhub.oms.common.enums.product;

import com.linkhub.oms.common.enums.IEnumConvert;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Description: LocalProductSearchTypeEnum
 * @Author: echo
 * @Date: 2024/3/22 17:18
 * @Version: 1.0
 */
@Getter
@AllArgsConstructor
public enum LocalProductSearchTypeEnum implements IEnumConvert<Integer> {
    SKU(1, "sku"),
    SPU(2, "spu"),
    PRODUCT_TITLE(3, "产品名称"),
    ;
    private final Integer type;
    private final String desc;

    @Override
    public Integer getCode() {
        return this.getType();
    }
}
